package model

import "time"

type OrderProductSnapshot struct {
	Id            uint       `json:"id"`
	OrderDetailId uint       `json:"order_detail_id"`
	Name          string     `json:"name"`
	Price         float32    `json:"price"`
	Stock         int        `json:"stock"`
	Description   string     `json:"description"`
	Detail        string     `json:"detail"`
	CreatedTime   *time.Time `json:"created_time"`
	UpdatedTime   *time.Time `json:"updated_time"`
	DeletedTime   *time.Time `json:"deleted_time"`
	Version       int        `json:"version"`
}

func (o *OrderProductSnapshot) TableName() string {
	return "order_product_snapshot"
}
